<div   class="popup_window_css" id="sample1" >
	<form action="content_calendar/calendar.php" method="post">
	<input type="hidden" name='months' value="<?=$month?>"/>
	<input type="hidden" name='years' value="<?=$year?>"/>
	<table class="popup_window_css" style="width: 100%;" >
		<tr  class="popup_window_css" >
			<td    class="popup_window_css">
				<div   class="popup_window_css_head" >
					<img src="images/close.gif" alt="" width="12" height="12" />Lich lam viec thang <?=$month?> nam <?=$year?>
				</div>
				<div   class="popup_window_css_body" style="min-height:100px;padding-top: 2px;padding-bottom: 2px;" id="Calendar">
					<table cellpadding="0" cellspacing="1" border="0" class="ftable1" style="width: 100%;margin:auto;">
			<tr align='center'>
				<th style="width:10px;"><img onclick="addCalendar1();" src="images/plus.png" style="width:20px;height:20px;cursor:pointer;" title="<?php echo $l_add;?>" /></th>
				<th><?=$l_name_calendar;?></th>
				<th ><?=$l_content_calendar;?></th>
				<th style="width: 90px;"><?=$l_date?></th>
			</tr>
			
		<?php 
		$k=1;
		foreach ($mang as $value => $giatri){
			if($giatri[3]==0){
			?>
			<tr align='center' style="height: 40px">
				<td><img onclick="delCalendar1(<?php echo $giatri[0];?>)" src="images/del.png" style="width:20px;height:20px;cursor:pointer;" title="<?php echo $l_delete;?>" /></td>
				<td><input id="idCalendar<?=$k?>" name="idCalendar[]" value='<?=$giatri[0]?>'  type="hidden"/><input id="nameCalendar<?=$k?>" name="nameCalendar[]" onchange="chnameCalendar(this.value,<?=$giatri[0]?>)" onkeyup="chnameCalendar(this.value,<?=$giatri[0]?>)" value='<?=$giatri[1]?>' style="height: 24px;width: 200px;"/></td>
				<td><textarea id="contentCalendar<?=$k?>" name="contentCalendar[]" onchange="chcontentCalendar(this.value,<?=$giatri[0]?>)" onkeyup="chcontentCalendar(this.value,<?=$giatri[0]?>)" style="height: 40px;width: 300px;"><?=$giatri[4]?></textarea></td>
				<td><input id="date<?=$k?>" name="date[]" onchange="chdateStart(this.value,<?=$giatri[0]?>)" onkeyup="chdateStart(this.value,<?=$giatri[0]?>)" value='<?=$giatri[2]?>' style="height: 24px;width: 100px;text-align: center;"/></td>
				
			</tr>
		<?php 
				$k++;
			}
				}
				if($k==1){?>
							<tr>
								<td class="tdfirst" colspan="4"><?=$l_list_emplty?></td>
								
							</tr>
		<?}?>
			
		</table> 
					
					
				</div>
				<div   class="popup_window_css_foot">
					<input style="margin:12px 5px 0 0; font-size: 12px;" type="submit" name="xacnhan"  value="<?php echo $l_xacnhan;?>" class="btn_choose"/>
					<input style="margin:12px 5px 0 0; font-size: 12px;" type="button" onclick="LoadlistCalendar()" value="<?php echo $l_cancel;?>" class="btn_choose"/>
				</div>
			</td>
		</tr>
	</table>
	</form>
</div>